<table style="width:50%; text-align: center">
    <?php if(count($result) > 0) echo '<tr>
                                            <th>Location</th>
                                            <th>Start Date</th>
                                            <th>End Date</th>
                                       </tr>' ?>
    <?php foreach ($result  as $row) : ?>
        <?php echo
            '<tr>' .
            '<form action="../Show_Room_Info/get_data" method="post">' .
            '<input type="hidden" name="tabid" value="' . $row['tabid'] . '"/>' .
            '<input type="hidden" name="roomid" value="' . $row['id'] . '"/>' .
            '<input type="hidden" name="location" value="' . $row['location'] . '"/>' .
            '<input type="hidden" name="floor" value="' . $row['floor'] . '"/>' .
            '<input type="hidden" name="roomcount" value="' . $row['roomcount'] . '"/>' .
            '<input type="hidden" name="orientation" value="' . $row['orientation'] . '"/>' .
            '<input type="hidden" name="aircond" value="' . $row['aircond'] . '"/>' .
            '<input type="hidden" name="tv" value="' . $row['tv'] . '"/>' .
            '<input type="hidden" name="minibar" value="' . $row['minibar'] . '"/>' .
            '<input type="hidden" name="startdate" value="' . $row['startdate'] . '"/>' .
            '<input type="hidden" name="enddate" value="' . $row['enddate'] . '"/>' .
            '<input type="hidden" name="pool" value="' . $row['pool'] . '"/>' .
            '<input type="hidden" name="jaccuzi" value="' . $row['jaccuzi'] . '"/>' .
            '<input type="hidden" name="massage" value="' . $row['massage'] . '"/>' .
            '<input type="hidden" name="haman" value="' . $row['haman'] . '"/>' .
            '<input type="hidden" name="sauna" value="' . $row['sauna'] . '"/>' .
            '<input type="hidden" name="salt" value="' . $row['salt'] . '"/>' .
            '<input type="hidden" name="fitness" value="' . $row['fitness'] . '"/>' .
            '<input type="hidden" name="steambath" value="' . $row['steambath'] . '"/>' .
            '<td>' . $row['location'] . '</td>' .
            '<td>' . $row['startdate'] . '</td>' .
            '<td>' . $row['enddate'] . '</td>' .
            '<td><input type="submit" value="View"></td>' .
            '</form></tr>'
        ?>
    <?php endforeach ?>
    <?php if(count($result) == 0) echo 'You don\'t have any rezervations'?>
</table>